package model.attack
{
	import model.Piece;

	public class Force implements Attack
	{
		public function getWinner(attacker:Piece, defender:Piece):Piece
		{
			if ((attacker.getPower() == 1) && (defender.getPower() == 10)){
				return attacker;
			}
			else if (attacker.getPower() > defender.getPower()){
				return attacker;
			}
			else if (attacker.getPower() < defender.getPower()){
				return defender;
			}
			else return null;
		}
		
	}
}